Forgot all about the Bathsheba story, or the story where the priest gives basically an abortion (magic potion) to people that are under suspicion of adultery and if you are an adulterer, you have a miscarriage, if not the child survives. These weren’t backwater witnesses though, this is educated, relatively middle class in the city.
But looking through some of the articles, I can see where people may get the impression:
Note here that the extended story then basically says God killed the babyDivorce, unwanted pregnancy, sexually transmitted disease, loss of trust or respect—all of these may be the sad, unavoidable consequences of sin. Recall that even after forgiving David for his sins in connection with Bath-sheba and Uriah, Jehovah did not protect David from the disastrous consequences that followed - 2 Samuel 12:9-12
Or how about this gem:And Jehovah struck the child whom U·riʹah’s wife had borne to David, and he became sick …
On the seventh day the child died
In this particular case of David and Bath-sheba neither of them had a right to the child and so there was no injustice in their being deprived of it. Besides, as an uncircumcised, unnamed infant it had not as yet developed any personality pattern or consciousness so as to appreciate life.